{assign $etatactive   = ESSAI_ETAT_ACTIVE}
 {literal} 
         <style  type="text/css">
                /*Couleur de fond différent*/
                li.desactive{background-color:#FFFF99 !important;}

          </style>
{/literal}

<div id="main_container">
	{$oZoneHeader}
    <div class="main_content">
        {$oZoneTopMenu}
        <div class="center_content">  
            <div class="left_content">
                
                {$oZoneLeftMenu}
                <h4>{$zLeftTitle} : </h4>
                <a class="bt_green" id="ajouter" href="{jurl 'essais~BoFiches:edit', array('iTypeId'=>$iTypeId), false}"><span class="bt_green_lft"></span><strong>Ajouter</strong><span class="bt_green_r"></span></a>
                {literal}
                <script>
                    $(function() {
                        $( "#sortable" ).sortable({ opacity: 0.6, cursor: 'move', update: function() {
                                var order = $(this).sortable("serialize") ;
                                $.post("{/literal}{jurl 'essais~BoFiches:reOrder', array(), false}{literal}", order);
                            }
                        });
                        $( "#sortable" ).disableSelection();
                    });
                </script>                    
                {/literal} 
                <ul id="sortable">
                    {foreach $toFiches as $oFiche}
                        {if $oFiche->ess_statut != $etatactive} {assign $etat   = "desactive"} {else}{assign $etat = ""}{/if}
                        
                        {if $oFiche->ess_iTypeId != 2}
                            {assign $url = "essais~BoModele:index"}
                            
                        {else}
                            {assign $url = "essais~BoGamme:index"}
                        {/if}
                    <li title="Glisser pour ré ordoner" id="tiFicheIds_{$oFiche->ess_id}" class="{$etat}"><label><a title='Editer' href="{jurl 'essais~BoFiches:edit', array('iId'=>$oFiche->ess_id,'iTypeid'=>$oFiche->ess_iTypeId), false}">{$oFiche->marque_libelle} {if $oFiche->modele_libelle}{$oFiche->modele_libelle} {$oFiche->ess_zVersion}{/if}</a></label>
                    <a title='Plus de détail' href="{jurl $url, array('iId'=>$oFiche->ess_id,'iTypeId'=>$oFiche->ess_iTypeId), false}" class="det">{image $j_basepath.'design/back/img/ico_detail.png',array('title'=>'','alt'=>'','border'=>0)}</a>
                    </li>
                    {/foreach}
                </ul>
            </div>
    
            <div class="right_content">
        
                <h2>{$zCenterTitle}</h2> 
               
             
            </div><!-- end of right content-->
        </div>   <!--end of center content -->               

        <div class="clear"></div>
    </div> <!--end of main content-->
	
    
    <div class="footer">
    </div>

</div>		
